
class ShareModel {
  String id = "";
  String invitedCustomerName = "";
  int status = 0;
  String shareTime = "";
  int permission = 0;

  ShareModel({
    this.id = "",
    this.invitedCustomerName = "",
    this.status = 0,
    this.shareTime = "",
    this.permission = 0
  });

  ShareModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    invitedCustomerName = json['invitedCustomerName'] ?? "未知";
    status = json['status'];
    shareTime = json['shareTime'];
    permission = json['permission'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['invitedCustomerName'] = this.invitedCustomerName;
    data['status'] = this.status;
    data['shareTime'] = this.shareTime;
    data['permission'] = this.permission;
    return data;
  }
}

